package com.woniu.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName face
 */
@TableName(value ="face")
@Data
public class Face implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer fid;

    /**
     * 图片数据 base_64编码
     */
    private String faceBase;

    /**
     * 插入时间
     */
    private Date createTime;

    /**
     * 验证次数
     */
    private Integer vefNum;

    /**
     * 人脸名称
     */
    private String faceName;

    /**
     * 人脸备注
     */
    private String remark;

    /**
     * 人脸是否可用，(0==可用，1,不可用)
     */
    private Integer faceStatus;

    /**
     * 扩展字段1
     */
    private String updateExtend1;

    /**
     * 扩展字段2
     */
    private String updateExtend2;

    /**
     * 扩展字段3
     */
    private String updateExtend3;

    /**
     * 账户id
     */
    private Long accountId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Face other = (Face) that;
        return (this.getFid() == null ? other.getFid() == null : this.getFid().equals(other.getFid()))
            && (this.getFaceBase() == null ? other.getFaceBase() == null : this.getFaceBase().equals(other.getFaceBase()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getVefNum() == null ? other.getVefNum() == null : this.getVefNum().equals(other.getVefNum()))
            && (this.getFaceName() == null ? other.getFaceName() == null : this.getFaceName().equals(other.getFaceName()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getFaceStatus() == null ? other.getFaceStatus() == null : this.getFaceStatus().equals(other.getFaceStatus()))
            && (this.getUpdateExtend1() == null ? other.getUpdateExtend1() == null : this.getUpdateExtend1().equals(other.getUpdateExtend1()))
            && (this.getUpdateExtend2() == null ? other.getUpdateExtend2() == null : this.getUpdateExtend2().equals(other.getUpdateExtend2()))
            && (this.getUpdateExtend3() == null ? other.getUpdateExtend3() == null : this.getUpdateExtend3().equals(other.getUpdateExtend3()))
            && (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFid() == null) ? 0 : getFid().hashCode());
        result = prime * result + ((getFaceBase() == null) ? 0 : getFaceBase().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getVefNum() == null) ? 0 : getVefNum().hashCode());
        result = prime * result + ((getFaceName() == null) ? 0 : getFaceName().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getFaceStatus() == null) ? 0 : getFaceStatus().hashCode());
        result = prime * result + ((getUpdateExtend1() == null) ? 0 : getUpdateExtend1().hashCode());
        result = prime * result + ((getUpdateExtend2() == null) ? 0 : getUpdateExtend2().hashCode());
        result = prime * result + ((getUpdateExtend3() == null) ? 0 : getUpdateExtend3().hashCode());
        result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fid=").append(fid);
        sb.append(", faceBase=").append(faceBase);
        sb.append(", createTime=").append(createTime);
        sb.append(", vefNum=").append(vefNum);
        sb.append(", faceName=").append(faceName);
        sb.append(", remark=").append(remark);
        sb.append(", faceStatus=").append(faceStatus);
        sb.append(", updateExtend1=").append(updateExtend1);
        sb.append(", updateExtend2=").append(updateExtend2);
        sb.append(", updateExtend3=").append(updateExtend3);
        sb.append(", accountId=").append(accountId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}